package com.itheima.reggie.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author GRS
 * @since 2024/4/26 上午9:27
 */
@AllArgsConstructor
@Data
@NoArgsConstructor
public class SetmealDish implements Serializable
{
    @Serial
    private static final long serialVersionUID = 1L;

    @TableId
    private Long id;

    // 套餐ID
    private Long setmealId;

    // 菜品ID
    private Long dishId;

    // 菜品名称
    private String name;

    // 菜品原价
    private BigDecimal price;

    // 份数
    private Integer copies;

    // 排序
    private Integer sort;

    @TableField(fill = FieldFill.INSERT)
    private String createTime;


    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateTime;


    @TableField(fill = FieldFill.INSERT)
    private Long createUser;


    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateUser;


    //是否删除
    private Integer isDeleted;
}